﻿using MediatR;
using PublicClass;
using PublicClass.Shift;
using System.ComponentModel.DataAnnotations;

namespace S.Produce.Api.Application.Commands.ShiftCommands
{
    public class ShiftCreateCommand : AuditFields, IRequest<int>
    {
        public int SDId { get; set; }

        /// <summary>
        /// 耳号
        /// </summary>
        [StringLength(50)]
        public string? Earbugles { get; set; }

        /// <summary>
        /// 栋舍名称
        /// </summary>
        [StringLength(50)]
        public string? DormName { get; set; }

        /// <summary>
        /// 栏位名称
        /// </summary>
        [StringLength(50)]
        public string? ColumnsName { get; set; }

        /// <summary>
        /// 羊只品种
        /// </summary>
        public Breed Breed { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public bool Sex { get; set; }

        /// <summary>
        /// 转出栋舍
        /// </summary>
        [StringLength(50)]
        public string? OriginallyDorm { get; set; }

        /// <summary>
        /// 转出栏位
        /// </summary>
        [StringLength(50)]
        public string? OriginallyColumns { get; set; }


        /// <summary>
        /// 转舍日期
        /// </summary>
        public DateTime TransferDate { get; set; }

        /// <summary>
        /// 羊只类型
        /// </summary>
        public SheepType SheepType { get; set; }

        /// <summary>
        /// 转舍类型
        /// </summary>
        public TransferType TransferType { get; set; }
    }
}
